package top.conangao.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.conangao.common.entity.BaseDO;

/**
 * 菜单表
 * @TableName sys_menu
 */
@TableName(value ="sys_menu")
@Data
public class SysMenu extends BaseDO {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 链接路径
     */
    @TableField(value = "url")
    private String url;

    /**
     * 父节点路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 绑定的组件
     */
    @TableField(value = "component")
    private String component;
    
    @TableField(value = "is_full")
    private Boolean isFull;

    /**
     * 重定向地址
     */
    @TableField(value = "redirect")
    private String redirect;

    /**
     * 上级菜单
     */
    @TableField(value = "parent_id")
    private long parentId;

    /**
     * 菜单名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 语言
     */
    @TableField(value = "locale")
    private String locale;

    /**
     * 是否保持存活
     */
    @TableField(value = "keep_alive")
    private Boolean keepAlive;

    /**
     * 所需权限
     */
    @TableField(value = "authority")
    private String authority;

    /**
     * 菜单类型
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 排序号
     */
    @TableField(value = "sort")
    private Integer sort;
}